﻿<%@ Page Title="Invoice Entry" Language="C#" MasterPageFile="~/AuditBillingMaster.master" AutoEventWireup="true" CodeFile="GenerateInvoicePDF.aspx.cs" Inherits="GenerateInvoicePDF" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cntList" runat="Server">
    <div style="margin-left: 0px;">
        <rsweb:ReportViewer ID="rptViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Height="700px" Width="1000px">
            <LocalReport ReportPath="Reports/InvoiceRpt.rdlc">
                <DataSources>
                    <rsweb:ReportDataSource DataSourceId="datInv" Name="dsInvoice_InvoiceReport" />
                </DataSources>
            </LocalReport>
        </rsweb:ReportViewer>

        <asp:SqlDataSource ID="datInv" runat="server" ConnectionString="<%$ ConnectionStrings:AuditBillConnectionString %>"
            SelectCommand="uspGetInvoice" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="InvoiceID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>

    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cntMain" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FootContent" runat="Server">
</asp:Content>

